﻿using System;
using System.Collections.Generic;

namespace BaMusaSoft.RPS.DataModel
{
    [Serializable]
    public class Contract
    {
        public Contract()
        {
            Payments = new HashSet<Payment>();
            Schedules = new HashSet<Schedule>();
        }

        public int ContractNo { get; set; }
        public string StartDate { get; set; }
        public string EndDate { get; set; }
        public int CustomerId { get; set; }
        public string PropertyNo { get; set; }
        public int AgreedRent { get; set; }
        public int AgreedDeposit { get; set; }
        public int AgreedMaintenance { get; set; }
        public int RentBalance { get; set; }
        public int MaintenanceBalance { get; set; }
        public int DepositBalance { get; set; }
        public int Total { get; set; }
        public bool? Closed { get; set; }
        public int? ActivityId { get; set; }
        public string SignDay { get; set; }
        public string SignHijriDate { get; set; }
        public string SignGregDate { get; set; }
        public bool? Scheduled { get; set; }

        public ContractActivity ContractActivity { get; set; }
        public Customer Customer { get; set; }
        public Property Property { get; set; }
        public ICollection<Payment> Payments { get; set; }
        public ICollection<Schedule> Schedules { get; set; }
    }

}